package com.mvc.model.healthmanager.archive;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.mvc.model.base.IdEntity;
@Entity
@Table(name="yh_blood_sugar")
@DynamicInsert(false)
@DynamicUpdate(false)
@JsonIgnoreProperties(ignoreUnknown = true)
public class BloodSugar extends IdEntity implements Serializable {
	/**
	 * 血糖表
	 */
	private static final long serialVersionUID = 2627174127626970106L;
	private String  personId;
	private Double  fbg;
	private Double  ogtt;
	private Double  glu;
	private Integer count;
	private Date creatDate;
	private Date  modifyDate;
	private Date  next_serviceDate;
	private String dataSource;
	private String sugarState;//血糖状态
	private Double tc;//总胆固醇
	private Double tg;//甘油三脂
	private Double ua;//尿酸
	private Double chol;//胆固醇
	private Double hdlChol;//高密度蛋白
	private Double calChol;//低密度蛋白
	
	private String bloodSugar;//血糖值 
	private String bloodsugarType;//血糖类型： 1、餐前血糖， 2、餐后血糖，3、随机血糖
	private String result;//结论：-1、低血糖，0、正 常，1、高血糖
	private Long appLocalId;
	private Integer respCode;
	public String getPersonId() {
		return personId;
	}
	public void setPersonId(String personId) {
		this.personId = personId;
	}
	public Double getFbg() {
		return fbg;
	}
	public void setFbg(Double fbg) {
		this.fbg = fbg;
	}
	public Double getOgtt() {
		return ogtt;
	}
	public void setOgtt(Double ogtt) {
		this.ogtt = ogtt;
	}
	public Double getGlu() {
		return glu;
	}
	public void setGlu(Double glu) {
		this.glu = glu;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}	
	public Date getCreatDate() {
		return creatDate;
	}
	public void setCreatDate(Date creatDate) {
		this.creatDate = creatDate;
	}
	public Date getModifyDate() {
		return modifyDate;
	}
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
	public Date getNext_serviceDate() {
		return next_serviceDate;
	}
	public void setNext_serviceDate(Date next_serviceDate) {
		this.next_serviceDate = next_serviceDate;
	}
	public String getDataSource() {
		return dataSource;
	}
	public void setDataSource(String dataSource) {
		this.dataSource = dataSource;
	}
	
	public String getSugarState() {
		return sugarState;
	}
	public void setSugarState(String sugarState) {
		this.sugarState = sugarState;
	}
	public Double getTc() {
		return tc;
	}
	public Double getTg() {
		return tg;
	}
	public Double getUa() {
		return ua;
	}
	public Double getChol() {
		return chol;
	}
	public Double getHdlChol() {
		return hdlChol;
	}
	public Double getCalChol() {
		return calChol;
	}
	public void setTc(Double tc) {
		this.tc = tc;
	}
	public void setTg(Double tg) {
		this.tg = tg;
	}
	public void setUa(Double ua) {
		this.ua = ua;
	}
	public void setChol(Double chol) {
		this.chol = chol;
	}
	public void setHdlChol(Double hdlChol) {
		this.hdlChol = hdlChol;
	}
	public void setCalChol(Double calChol) {
		this.calChol = calChol;
	}
	public BloodSugar(){}

	@Transient
	public String getBloodSugar() {
		return bloodSugar;
	}
	@Transient
	public String getBloodsugarType() {
		return bloodsugarType;
	}
	@Transient
	public String getResult() {
		return result;
	}
	@Transient
	public void setBloodSugar(String bloodSugar) {
		this.bloodSugar = bloodSugar;
	}
	@Transient
	public void setBloodsugarType(String bloodsugarType) {
		this.bloodsugarType = bloodsugarType;
	}
	@Transient
	public void setResult(String result) {
		this.result = result;
	}
	@Transient
	public Long getAppLocalId() {
		return appLocalId;
	}
	@Transient
	public Integer getRespCode() {
		return respCode;
	}
	@Transient
	public void setAppLocalId(Long appLocalId) {
		this.appLocalId = appLocalId;
	}
	@Transient
	public void setRespCode(Integer respCode) {
		this.respCode = respCode;
	}
	
}
